package com.tudouji.project.produce.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tudouji.project.produce.mapper.WhinapplyitemMapper;
import com.tudouji.project.produce.domain.Whinapplyitem;
import com.tudouji.project.produce.service.IWhinapplyitemService;

/**
 * 入库申请单明细Service业务层处理
 * 
 * @author tudouji
 * @date 2022-06-01
 */
@Service
public class WhinapplyitemServiceImpl implements IWhinapplyitemService 
{
    @Autowired
    private WhinapplyitemMapper whinapplyitemMapper;

    /**
     * 查询入库申请单明细
     * 
     * @param guid 入库申请单明细ID
     * @return 入库申请单明细
     */
    @Override
    public Whinapplyitem selectWhinapplyitemById(String guid)
    {
        return whinapplyitemMapper.selectWhinapplyitemById(guid);
    }

    /**
     * 查询入库申请单明细列表
     * 
     * @param whinapplyitem 入库申请单明细
     * @return 入库申请单明细
     */
    @Override
    public List<Whinapplyitem> selectWhinapplyitemList(Whinapplyitem whinapplyitem)
    {
        return whinapplyitemMapper.selectWhinapplyitemList(whinapplyitem);
    }

    /**
     * 新增入库申请单明细
     * 
     * @param whinapplyitem 入库申请单明细
     * @return 结果
     */
    @Override
    public int insertWhinapplyitem(Whinapplyitem whinapplyitem)
    {
        return whinapplyitemMapper.insertWhinapplyitem(whinapplyitem);
    }

    /**
     * 修改入库申请单明细
     * 
     * @param whinapplyitem 入库申请单明细
     * @return 结果
     */
    @Override
    public int updateWhinapplyitem(Whinapplyitem whinapplyitem)
    {
        return whinapplyitemMapper.updateWhinapplyitem(whinapplyitem);
    }

    /**
     * 批量删除入库申请单明细
     * 
     * @param guids 需要删除的入库申请单明细ID
     * @return 结果
     */
    @Override
    public int deleteWhinapplyitemByIds(String[] guids)
    {
        return whinapplyitemMapper.deleteWhinapplyitemByIds(guids);
    }

    /**
     * 删除入库申请单明细信息
     * 
     * @param guid 入库申请单明细ID
     * @return 结果
     */
    @Override
    public int deleteWhinapplyitemById(String guid)
    {
        return whinapplyitemMapper.deleteWhinapplyitemById(guid);
    }
}
